<%@ page language="java" import="java.util.*"
	contentType="text/html; charset=utf-8"%>
<!doctype html>
<html class="no-js">

<head>
<%@ include file="../commoms/link.txt"%>
<meta name="description" content="EmployerManager">
<script src="assets/js/pagejs/ERIndex.js"></script>
<style type="text/css">
#page {
	vertical-align: middle;
}
</style>
</head>
<body>
	<%@ include file="../commoms/ERHeader.txt"%>
	<div class="admin-content">
   <div class="admin-content-body">
		<div class="am-container" id="pagecontainer" style="margin-top: 40px;">


		</div>

        <div class="am-fr">
			<ul id="page" data-am-widget="pagination"
				class="am-pagination am-pagination-default">
			  </ul>
              </div>


	</div>

</div>


	</div>

<%@ include file="../commoms/alert.txt"%>
		<%@ include file="../commoms/comfirmModel.txt"%>


</body>

	<script type="text/javascript">
		var currentpage = 1;
		var pages = 1;
		var nums=0;
		var ldata = null;
		var $ul = $('#page');
		var $pagecontainer = $('#pagecontainer');
		$pagecontainer.on('click', '.del', function(event) {
			further('del', event.currentTarget.id)
		});
		$pagecontainer.on('click', '.start', function(event) {
			further('start', event.currentTarget.id)
		});
		$pagecontainer.on('click', '.edit', function(event) {
			further('edit', event.currentTarget.id)
		});
		myAjax(domain + "/getAllERCount.do", {}, function(
				data) {
			$('#count1').text(data.nostart);
			$('#count2').text(data.started+data.end);
			$('#count3').text(data.finish);
			nums=data.nostart;
			pages = nums;
			pages = Math.ceil(pages / 5)
			if (nums!= 0) {
				drawPages($ul, currentpage, pages, 5);
				getERcontent(domain + '/showERPtJobList.do', currentpage,
						$pagecontainer);
			}
		});
		
	</script>
	<a href="#"
		class="am-icon-btn am-icon-th-list am-show-sm-only admin-menu"
		data-am-offcanvas="{target: '#admin-offcanvas'}"></a>
</html>
